from Page import Page
from selenium.webdriver.common.by import By

class Page2(Page):
    # id="_mail_component_98_98"
    write_loc = (By.ID,'_mail_component_98_98')
    def weite(self):
        self.click(self.write_loc)
    # class="nui-editableAddr-ipt"
    preson_loc = (By.CLASS_NAME,'nui-editableAddr-ipt')
    def person(self):
        self.send_keys(self.preson_loc,'3080172040@qq.com')
    # id="1758718346832_subjectInput"
    title_loc = (By.XPATH,'//input[contains(@id,subjectInput)]')
    def title(self):
        self.send_keys(self.title_loc,'126邮箱业务po模型')
    # class="APP-editor-iframe"
    kj2_loc = (By.CLASS_NAME,'APP-editor-iframe')
    def kj2(self):
        self.iframe(self.kj2_loc)
    # /html/body
    body_loc = (By.XPATH,'/html/body')
    def body(self):
        self.send_keys(self.body_loc,'完成')
#     class="nui-btn-text"
    send_loc = (By.CLASS_NAME,'nui-btn-text')
    def send(self):
        self.click(self.send_loc)
